-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
ci: Fix flaky direct access transaction tests #9235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Fix flaky direct access transaction tests #9235
Conversation
Thanks for opening this pull request!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #9235 +/- ##
==========================================
+ Coverage 93.75% 93.76% +0.01%
==========================================
Files 184 184
Lines 14675 14715 +40
==========================================
+ Hits 13758 13797 +39
- Misses 917 918 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an interesting fix; is it more reliable to reference a spy in a var let createSpy = spyOn...
than to set the spy spyOn(databaseAdapter, 'createObject').and.callThrough()
and then try to access it via the spied upon obj databaseAdapter.createObject.calls
?
Using |
🎉 This change has been released in version 7.3.0-alpha.7 |
🎉 This change has been released in version 7.3.0-beta.1 |
🎉 This change has been released in version 7.3.0 |
Pull Request
Issue
#9210 fixed the transaction flaky test for
batch.spec.js
. This PR fixes it for the ParseServerRESTConrollerhttps://github.com/parse-community/parse-server/actions/runs/10019940136/job/27697049679?pr=9218